<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://meevle.com/web/tags/MeevleTag.tld" prefix="meevle" %>
    
    
    
    		<c:choose>
				<c:when test="${param.username != null && param.password == null}">
					<meevle:checkAvailabilityUser object="${userDelegate}" username="${param.username}">
						<c:if test="${availableMessage != null}">
							<div id="register-confirm">
								<p>${availableMessage}</p>
							</div>
						</c:if>
					</meevle:checkAvailabilityUser>
				</c:when>	
			</c:choose>
			
			
			<p><b>Registration</b></p>
			<p>Register so you can access your profile. Another plus is that you can login into the Studio as well!</p>
			
				<div id="form-block">
					<form action="#" method="get">
						<input type="hidden" name="page" value="home/Registration.jsp" />
						
						<label for="uname">Username</label>
						<c:choose>
							<c:when test="${param.username!=null}">
								<input type="text" name="username" id="uname" value="${param.username}" class="short" />
							</c:when>
							<c:otherwise>
								<input type="text" name="username" id="uname" class="short" />
							</c:otherwise>
						</c:choose>
									
						<c:if test="${!isAvailable || param.username == null}">
							<input type="submit" class="submit" name="checkAvailability" value="Available?" />
						</c:if>
						
						<c:if test="${isAvailable && param.username != null}">
						<label for="pass">Password</label>
						<input type="password" name="password" id="pass" class="short" />
	
						<input type="submit" name="register" class="submit" value="Register" onclick="change('password')"/>
						<input type="reset" class="submit reset" value="Reset form" />
						</c:if>
					</form>
				</div>